home *** CD-ROM | disk | FTP | other *** search
/ Amiga Mag HDD Backup / Amiga Mag HDD Backup.zip / Amiga Mag HDD Backup / Alexander.img.bin / Alexander.img / AOL Files / More AOL Files.sit / aol first Archive.sit / Aol files / FAQ All about Amiga FTP 2 < prev    next >
Text File  |  1995-04-03  |  17KB  |  498 lines

  1. Subject: FAQ: All about Amiga FTP
  2. From: umueller@amiga.icu.net.ch (FTP Admin)
  3. Date: 1 Apr 1995 00:00:57 -0600
  4. Message-ID: <3liq6p$7sq@wuarchive.wustl.edu>
  5.  
  6. Last update: 21-Sep-94
  7.   - New FTP site list (Chapter 3)
  8.   - Downloading large files (Chapter 9)
  9.  
  10. 0. Contents
  11. ===========
  12. 1. Introduction
  13. 2. FTP command list
  14. 3. Important sites
  15. 4. A Sample Session
  16. 5. The .netrc File
  17. 6. Archivers
  18. 7. The Archie Database
  19. 8. Mailservers
  20. 9. Transferring to Amiga
  21.  
  22.  
  23.  
  24. 1. Introduction
  25. ===============
  26.  
  27. FTP stands for File Transfer Protocol.  The program with the same name,
  28. 'ftp', allows you to gain access to some other machines and store and/or
  29. retrieve files.  If you have a UNIX account on a machine with Internet
  30. access, and the machine has the 'ftp' command, you're almost done.  If not,
  31. you have to get the files by mail:  see the section 'Mailservers', below.
  32.  
  33. In this document, we refer to two computers:
  34.  
  35. o    The 'local machine' is the computer that you are physically logged
  36.     in on.
  37.  
  38. o    The 'remote machine' is the computer that you are contacting via
  39.     your local machine.  It might be right next door, or thousands of
  40.     kilometers away!  Using 'ftp', you can transfer files from the
  41.     remote machine to your local machine, or from your local machine to
  42.     the remote machine.
  43.  
  44. Normally, one needs an account on a remote machine to use it.  However, a
  45. number of machines on the Internet allow anybody to log in as the user 'ftp'
  46. or 'anonymous'.  When you log in using the anonymous account, you'll be
  47. prompted for a password.  You should type your local login name as the
  48. password, especially when you upload.  After doing so, you may retrieve all
  49. files found in public areas on the remote machine.  Doing this is
  50. commonly called 'using anonymous ftp' or 'doing some anonymous ftp-ing'.
  51.  
  52. The ftp program gives you a prompt that looks like this:
  53.  
  54.         ftp>
  55.  
  56. At this prompt, you can type commands to connect to remote machines, upload
  57. and download files, etc.
  58.  
  59.  
  60.  
  61. 2. FTP command List
  62. ===================
  63.  
  64. Here are some important commands you'll need within ftp.  In these examples,
  65. any words given inside angled brackets <like this> are like variables
  66. that stand for particular values.  For example, the command
  67.  
  68.             get <remote file name>
  69.  
  70. means you should type the word "get" followed by the name of a file that
  71. is on the remote machine.  An actual example would be:
  72.  
  73.             get SuperProgram.lha
  74.  
  75. Commands For Opening And Closing FTP Connections:
  76.  
  77.     open <site>
  78.  
  79.         Connects to a remote machine.  For valid sites, see below.
  80.  
  81.     close
  82.         Closes connection to the remote site
  83.  
  84.     bye
  85.         Quits FTP.
  86.  
  87.     quit
  88.         Same as bye.
  89.  
  90. Commands For Setting The Transfer Mode
  91.         
  92.     bin
  93.  
  94.         Sets the connection to binary mode for transferring non-text
  95.         files, such as "lha", "lzh", "zoo", "arc", "dms", "zom", "Z"
  96.         (compressed), "gz", "tar", and other archives.  See the
  97.         "Archivers" section below.
  98.  
  99.     asc
  100.         Sets the connection to text (ASCII) mode for transferring
  101.         text files.
  102.  
  103.     It is OK to transfer text files in "bin" mode.  However, it is
  104.     WRONG to transfer binary files in "asc" mode -- they will get all
  105.     messed up.  So to be safe, you can just type "bin" at the beginning
  106.     of each ftp session and leave it that way.  (However, "asc" mode
  107.     is faster for text files.)
  108.  
  109. Commands For Downloading (Getting, Receiving) Files:
  110.  
  111.     get <remote file name>
  112.  
  113.         Receives the named remote file.  This command cannot
  114.         transfer multiple files at a time; for that, see "mget".
  115.  
  116.         If you specify a second argument, it will be used as the
  117.         name for the local file.  (By default, the local file has
  118.         the same name as the remote file.)
  119.  
  120.     mget <remote file 1> <remote file 2> ...
  121.  
  122.         Receives all the above remote files with a single command.
  123.  
  124.     mget <pattern>
  125.  
  126.         Receives all the remote files whose names match <pattern>.
  127.         Patterns may include the symbols
  128.  
  129.             *    stands for any sequence of characters
  130.             ?    stands for any 1 character
  131.  
  132.         For example, if you wanted to download all files that
  133.         begin with "B" and end with ".lzh", type:
  134.  
  135.             mget B*.lzh
  136.  
  137.         To download all files whose names are exactly 4 characters
  138.         long, type:
  139.  
  140.             mget ????
  141.  
  142.         You will be prompted before each file is downloaded.
  143.         To turn off this prompting, see the "prompt" command below.
  144.  
  145. Commands For Uploading (Putting, Sending) Files
  146.  
  147.     put <local file name>
  148.  
  149.         Transmits the local file to the remote machine.
  150.         This works for only one file at a time, similarly to the
  151.         way "get" works.
  152.  
  153.         If you specify a second argument, it will be used as the
  154.         name for the remote file.  (By default, the remote file has
  155.         the same name as the local file.)
  156.  
  157.     mput <local file 1> <local file 2> ...etc.
  158.  
  159.         Transmits all the above local files to the remote machine
  160.         with a single command.
  161.  
  162.     mput <pattern>
  163.  
  164.         Transmits all local files whose names match the given
  165.         pattern.  See the "mget" command, above, for information
  166.         about patterns.
  167.  
  168. Additional Commands For Uploading And Downloading
  169.  
  170.     prompt
  171.  
  172.         Normally, mget and mput will prompt you before transferring
  173.         each file.  If you don't like this, the 'prompt' command
  174.         toggles the prompting on and off.
  175.  
  176.     hash
  177.  
  178.         Normally, files are downloaded silently.  Typing the 'hash'
  179.         command will cause a 'hash mark' to be printed every so
  180.         often, indicating how much downloading has completed so far.
  181.         Typing this command again toggles the hash marks on and off.
  182.  
  183. Commands For Exploring The Local And Remote Machines
  184.  
  185.     Files on the remote machine (and probably your local machine too)
  186.     are organized in directories.  Here is how to navigate those
  187.     directories and view their contents.
  188.  
  189.     dir <pattern>
  190.  
  191.         Lists files in the current directory of the remote machine.
  192.         See "mget", above, for information about patterns.
  193.  
  194.     ls <pattern>
  195.  
  196.         Same as "dir", but list the files in a short format.
  197.  
  198.     cd <directory name>
  199.  
  200.         Changes your current directory on the remote machine.
  201.  
  202.     lcd <directory name>
  203.  
  204.         Changes your current directory on the local machine
  205.  
  206.     mkdir <directory name>
  207.  
  208.         Creates a new directory on the remote machine.  This will
  209.         not work if you do not have permission to do it on the
  210.         remote machine.
  211.  
  212. Some Special And Helpful Functions
  213.  
  214. o    There are some special arguments you can add to the 'get' command.
  215.     If you type:
  216.  
  217.             get myfile -
  218.  
  219.     then file 'myfile' will be displayed on your screen instead of
  220.     downloaded.  If you would like this file to be displayed one
  221.     screen at a time, pausing after each screenful, type
  222.  
  223.             get myfile |more
  224.  
  225.     [NOTE -- NO SPACE BETWEEN THE '|' and 'more'].  This latter command
  226.     may not work on all remote machines.
  227.  
  228. o    Also note that the ls and dir commands take only one argument.  This
  229.     can be either an option or a pattern, BUT NOT BOTH.  If you give a
  230.     second argument, this will be interpreted as a local filename, and
  231.     the directory listing will be stored in that local file instead of
  232.     displayed on your screen.
  233.  
  234.  
  235. 3. Important Sites
  236. ==================
  237.  
  238. Location    Name                     Address         Directory
  239. --------    ----                     -------         ---------
  240. USA (MO)     ftp.wustl.edu            128.252.135.4   pub/aminet/
  241. USA (CA)     ftp.cdrom.com            192.216.222.5   pub/aminet/
  242. USA (TX)     ftp.etsu.edu             192.43.199.20   pub/aminet/
  243. USA (WI)     ftp.netnet.net           198.70.64.3     pub/aminet/
  244. Scandinavia  ftp.luth.se              130.240.18.2    pub/aminet/
  245. Switzerland  ftp.eunet.ch             146.228.10.16   pub/aminet/
  246. Switzerland  ftp.math.ethz.ch         129.132.104.6   pub/aminet/
  247. Switzerland  litamiga.epfl.ch         128.178.151.32  pub/aminet/
  248. Germany      ftp.uni-paderborn.de     131.234.2.32    pub/aminet/
  249. Germany      ftp.uni-erlangen.de      131.188.3.2     pub/aminet/
  250. Germany      ftp.uni-bielefeld.de     129.70.4.55     pub/aminet/
  251. Germany      ftp.uni-oldenburg.de     134.106.40.9    pub/aminet/
  252. Germany      ftp.uni-kl.de            131.246.9.95    pub/aminet/
  253. Germany      ftp.uni-stuttgart.de     129.96.8.13     pub/aminet/
  254. Germany      ftp.uni-siegen.de        141.99.128.1    pub/aminet/
  255. Germany      ftp.cs.tu-berlin.de      130.149.17.7    pub/aminet/
  256. Germany      ftp.stud.fh-heilbronn.de 141.7.1.41      pub/aminet/
  257. Germany      ftp.tu-chemnitz.de       192.108.33.193  pub/aminet/
  258. UK           ftp.doc.ic.ac.uk         146.169.2.1     pub/aminet/
  259. UK           micros.hensa.ac.uk       148.88.8.84     pub/aminet/
  260.    (*) closed 6:30am to 4pm weekdays
  261.  
  262.  
  263. The above group of sites together are called 'Aminet'.  They all contain the
  264. same files (through a process called 'mirroring'), although most of them
  265. delete older files.  Also, there are a lot of other Amiga FTP sites around, 
  266. and when make announcments about software on these sites, they usually give 
  267. the site address.
  268.  
  269. Finland      ftp.funet.fi            128.214.6.100   pub/amiga/
  270. USA          ftp.isca.uiowa.edu      128.255.21.233  amiga/fx
  271. USA          ftp.hawaii.edu          128.171.44.70   pub/amiga/fish
  272. Scandinavia  ftp.funet.fi            128.214.248.6   pub/amiga/fish
  273.  
  274. Both ftp.cso.uiuc.edu and grind.isca.uiowa.edu have a full collection of
  275. Fish Disks as their main feature.  Whenever I mention a program that is to
  276. be retrieved from a Fish disk, you can get it there.
  277.  
  278.  
  279.  
  280. 4. A Sample Session
  281. ===================
  282.  
  283. This is an example FTP session.  What you have to type is given in square
  284. brackets, on a line by itself, like this:
  285.  
  286.    [Here is something that you would type]
  287.  
  288. Everything else is displayed by the computer.  FTP output is often preceded
  289. by strange numbers like "220" and "150" -- you can ignore these.
  290. The example begins here.
  291.  
  292.    [ftp]
  293.  
  294. ftp> 
  295.      [open wuarchive.wustl.edu]
  296. Connected to wuarchive.wustl.edu.
  297. 220 amiga FTP server (Version 5.60.97 Wed Dec 9 22:23:21 MET 1992) ready.
  298. Name (amiga:umueller): 
  299.                        [ftp]
  300. 331 Guest login ok, send your userid as password.
  301. Password:
  302.           [kdalton]
  303. 230- Welcome to amiga.physik anonymous FTP server
  304. 230-      .....
  305. 230 Guest login ok, access restrictions apply.
  306. ftp> 
  307.      [cd pub/aminet]
  308. 250 CWD command successful.
  309. ftp> 
  310.      [get RECENT |more]
  311. 200 PORT command successful.
  312. 150 Opening ASCII mode data connection for RECENT (5676 bytes).
  313. | Recent uploads to wuarchive.wustl.edu [130.60.80.80] on 11-Dec-1992
  314. | The last 7 days' uploads, newest first. Blank line=new day, + = long .readme
  315. |
  316. |File                Dir        Size Description
  317. |------------------- ---        ---- -----------
  318. tiff2iff.lha         gfx/conv     7K Converts TIFF files to Amiga IFF
  319. DNetIRCpic.lzh       comm/net    16K Demo picture of DNet IRC
  320. DNetIRC.lha          comm/net    88K+IRC intuition DNet client (dnetlib.o neede
  321. ICoons_Nofp.lzh      gfx/3d     172K+Spline based object modeller (no 68881 nee
  322. 1993.lha             mods/u4ia  109K+ProTracker Module By U4ia called '1993'
  323. skick321.lha         os20/util   37K+Soft-kicker under OS 2.0 - new release
  324. monoxyde.dms         demo/mega  477K+MONOXYDE - new demo by Vanish
  325. baudbandit1.4b.lha   comm/misc   16K+Version 1.4b of baudbandit.device
  326. jed206b.lha          util/edit  144K+programmable, programmers editor. OS2.0+
  327. --More--
  328.          [q]
  329. 226 Transfer complete.
  330. local: |more remote: RECENT
  331. 5763 bytes received in 4.5 seconds (1.2 Kbytes/s)
  332. ftp> 
  333.      [cd game/think]
  334. 250 CWD command successful.
  335. ftp> 
  336.      [bin]
  337. 200 Type set to I.
  338. ftp> 
  339.      [get t-triz.lzh]
  340. 200 PORT command successful.
  341. 150 Opening BINARY mode data connection for t-triz.lzh (56496 bytes).
  342. 226 Transfer complete.
  343. local: t-triz.lzh remote: t-triz.lzh
  344. 56496 bytes received in 0.43 seconds (1.3e+02 Kbytes/s)
  345. ftp> 
  346.      [bye]
  347. 221 Goodbye.
  348.  
  349. This is the end of of the sample session.
  350.  
  351. If you're looking for something specific on that site, check the appropriate
  352. directory (using the 'cd' and 'ls' commands), or download the remote files
  353. 'INDEX', 'LOCAL' or 'ls-lR.Z'.  You can then use a program such as the UNIX
  354. 'grep' to search for filenames in them.  (Type 'man grep' in the UNIX shell
  355. to learn about grep).
  356.  
  357.  
  358. 5. The .netrc File
  359. ==================
  360.  
  361. If you put a file named .netrc in your home directory on the local machine,
  362. it will make your ftp life easier.  Just put into this file all information
  363. about how to log in at your favourite FTP site, and it'll be done
  364. automatically when you ftp to that site.
  365.  
  366. After you create the .netrc file, you have to 'chmod 600 .netrc' or it won't
  367. be accepted:
  368.  
  369.         cd
  370.         chmod 600 .netrc
  371.  
  372. Here's an example .netrc file to log onto the machine wuarchive.wustl.edu.
  373. It also defines a macro called 'init' that turns on binary mode and changes
  374. your remote directory to pub/aminet.  To use this macro after you are logged
  375. into the remote machine, just type
  376.  
  377.         $init
  378.  
  379. machine wuarchive.wustl.edu
  380. login ftp
  381. password kdalton
  382. macdef init
  383. bin
  384. cd pub/aminet
  385.  
  386.  
  387. Make sure you put a blank line after the last command, or else it won't work
  388. properly.  Also, remember to set the password to your login name.
  389.  
  390.  
  391. 6. Archivers
  392. ============
  393.  
  394. Most files on FTP sites store their files in archived (compressed) format.
  395. You can recognize the archiver used by the ending of the file name.  These
  396. are the most important ones:
  397.  
  398. Suffix  Archiver        Filename on Aminet
  399.  
  400. .lzh    LhA             LhA_e138.run
  401. .lha    LhA             LhA_e138.run
  402. .zoo    Zoo             zoo2-10.lzh
  403. .zip    Zip             unzip-4.1.lzh
  404. .dms    DMS             dms111.sfx
  405. .run    (LhA)           -
  406. .sfx    (LhA)           -
  407. .tar.Z  tar, compress   tar-compress.lzh
  408. .gz    GNU Zip        gzip124x.lha
  409.  
  410. The AmigaDOS versions of those archivers can be found on the AmiNet sites
  411. (see above) in the directory pub/aminet/util/arc, except for GNU Zip which
  412. is found in pub/aminet/util/pack.  To give you a start, LhA is also stored
  413. in self-extracting form (.run or .sfx).  Just execute it to extract it.
  414.  
  415. UNIX versions of most of these archivers are available.  You can get them
  416. from wuarchive.wustl.edu in the directory /pub/aminet/misc/unix/, or if
  417. they're not there, use archie (see below) to find them. The files names are:
  418.  
  419. LhA  lha-1.00.tar.Z  
  420. Zoo  zoo-2.10.tar.Z
  421. Zip  unzip41.tar.Z
  422. Dms  dmscheck.c.Z
  423.  
  424.  
  425. 7. The Archie Database
  426. ======================
  427.  
  428. There is a database of all files on all FTP sites worldwide, called 'archie'.
  429. They have a mailserver, a telnet service, and a client software.  Telnet to
  430. archie.sura.net and log in as 'archie', or send mail containing HELP in its
  431. body to archie@quiche.cs.mcgill.ca.  You'll get more information that way.
  432.  
  433.  
  434. 8. Mailservers
  435. ==============
  436.  
  437. Some sites allow sending them magic mail messages which cause them to FTP
  438. things from other sites, uuencode them, and send them to you.  Others only
  439. send the files stored locally at that site.  Here are the most important mail
  440. servers.  Send a mail containing HELP in its body to find out more about them
  441. (note that the German links are slow, generally):
  442.  
  443. ftpmail@decwrl.dec.com
  444. mailserver@nic.funet.fi
  445. ftp-mailer@ftp.informatik.tu-muenchen.de
  446. mrcserv@janus.mtroyal.ab.ca
  447. mail-server@ftp.cs.tu-berlin.de
  448. mail-server@rtfm.mit.edu
  449.  
  450.  
  451. 9. Transferring to Amiga
  452. ========================
  453.  
  454. After you have the files on your UNIX account, you need to get the files
  455. home.  Most Amiga terminal programs have one or more ways to transfer files
  456. to your Amiga.  Read your terminal program documentation for more
  457. information.
  458.  
  459. One recommended method is to use ZModem.  If your local machine has the
  460. 'sz' command, and your terminal program supports ZModem, you are set.
  461. To download the file 'whatever.lzh' to your Amiga, type:
  462.  
  463.         sz whatever.lzh
  464.  
  465. and then use your terminal program to receive it.  If your site does not
  466. have 'sz', you can get it from krynn.efd.lth.se in the file
  467. /pub/modem/rzsz9107.tar.Z.  Compile it, or use archie to find a version
  468. specific for your UNIX flavor.
  469.  
  470. In the worst case, you can turn on your terminal program's "screen capture"
  471. feature and type:
  472.  
  473.     uuencode <filename filename
  474.  
  475. to get your file typed to the screen in 'uuencoded' format.  On your Amiga,
  476. uudecode the file (using uudecode from Fish Disk 92).  Also, some sites
  477. still use 'kermit'. If you have a program of that name, you can use one of
  478. the Amiga kermit implementations found on Aminet to get files home.
  479.  
  480. If you don't have a modem, you can try to find a workstation with 3.5"
  481. floppy drive.  Sun 4 computers have them.  There you can either use the
  482. program mtools (try 'man mcopy') to store the files in MSDOS format and
  483. retrieve them using MSH (Fish Disk 382) or CrossDOS (included with AmigaDOS
  484. 2.1 and higher), or you use gnu tar (UNIX version to be found on
  485. decuac.dec.com, /pub/binaries/gnutar-1.10.tar.Z) to store files on the disk
  486. in .tar format using the command 'gtar cfvM /dev/rfd0c'.  Then you restore
  487. the files with gnu gtar (found on wuarchive.wustl.edu, in the file
  488. pub/aminet/util/gnu/gtar110.lzh) and the FLAT device (Fish Disk 535) and MSH
  489. (or any other PC format reading tool).  Mount FLAT:, and then enter 'gtar
  490. xfvM flat:MSH' or replace the MSH by the name of your emulation tools.
  491.  
  492. If a file is too large to fit on a floppy, you can use misc/unix/bsplit*
  493. from Aminet to split it, and c:join under AmigaDOS to put it back together.
  494.  
  495. If you'd like some additional info to be included in this FAQ, contact
  496. umueller@wuarchive.wustl.edu.  -Urban Dominik Mueller
  497.  
  498.